cmake_minimum_required (VERSION 3.8)
project("Example")

set(CMAKE_CXX_STANDARD 17)
if (MSVC)
    add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
endif ()

if (CMAKE_BUILD_TYPE STREQUAL "Debug")
    set(DGGS_OUT_DIR ${CMAKE_OUT_DIR}/out/build/debug)
else ()
    set(DGGS_OUT_DIR ${CMAKE_OUT_DIR}/out/build/release)
endif ()

include_directories("${CMAKE_SOURCE_DIR}/LibDGGSBase")

include_directories("${CMAKE_SOURCE_DIR}/LibDGGSKernel")
link_directories("${DGGS_OUT_DIR}/LibDGGSKernel")
include_directories("${CMAKE_SOURCE_DIR}/3rdlibs/include")
link_directories("${CMAKE_SOURCE_DIR}/3rdlibs/lib")
include_directories("${CMAKE_SOURCE_DIR}/LibDGGSFeature")
link_directories("${DGGS_OUT_DIR}/LibDGGSFeature")
include_directories("${CMAKE_SOURCE_DIR}/LibDGGSField")
link_directories("${DGGS_OUT_DIR}/LibDGGSField")


add_subdirectory("Feature")
add_subdirectory("Field")
add_subdirectory("Kernel")